<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>硅谷少儿英语-外教上门 小班拼课</title>
<meta name="description" content="" />
<meta name="Keywords" content="少儿英语培训，儿童英语，少儿口语，外教上门，外教到家，小班英语" />
<link rel="shortcut icon" href="https://www.svenglish.cn/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/swiper-3.4.2.min.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body class="home">

<div class="page_all" id="homePage">
  <div class='header'>
    <a class='logo' href="index.html"><img src='images/logo.png'></a>
  </div>



  <div class='main_box home_main2'>
    <div class='group_box'>

      <div class='course_top'>
        <div class="course_top_info"><b>课程：</b>{{courseData.name}}({{getValue(groupInfo.courseId,'info')}})</div>
        <div class="course_top_info" v-if="courses.length && courses[0].contactLocation"><b>发起地点：</b><tempmlate v-if="courses[0].contactLocation !== courses[0].locationAddress">{{courses[0].contactLocation}}({{courses[0].locationAddress}})</tempmlate><template v-else>{{courses[0].locationAddress}}</template></div>
        <p>(试听课地点由所有拼班家长协商确定)</p>
      </div>

      <!--已结束-->
      <div class="group_price" v-if="isEnd">
        <div class="group_price_tit" v-if="courses.length > 1">已有{{courses.length}}人报名，试听时间/地点协商确定后即可安排试听</div>
        <div class="group_price_tit" v-else>拼班已到期，人数不足未能成班<br>您可重新发起新的拼班</div>
      </div>

      <!--已加入，未结束-->
      <div class="group_price" v-else-if="isJoin">
        <div class="group_price_tit" v-if="courses.length === 1">再邀请1人参加，即可成班<br>享受一次免费试听</div>
        <div class="group_price_tit" v-else-if="courses.length < 4">再邀请1人参加，最终学费<br>至少再省<b>{{priceInfo[courses.length]}}元/人</b></div>
        <div class="group_price_tit" v-else>已有4人报名，试听时间/地点协商确定后即可安排试听</div>
      </div>

      <!--未加入，未结束-->
      <div class="group_price" v-else>
        <div class="group_price_tit" v-if="courses.length > 1">已有{{courses.length}}人参加，已开班<br>现在参加即可 享受一次免费试听</div>
        <div class="group_price_tit" v-else>现在参加，即可开班<br>享受一次免费试听</div>
      </div>

      <div class='group_list_box'>
        <div class="group_list" :class="{'group_active':index<courses.length}" v-for="(item,index) in groupInfo.groupMaxNumber">
          <span class="groupList-tip" :class="{'current': courses.length === 2}" v-if="index === 0">满2人即可成班</span>
          <span class="groupList-tip tips2" v-if="index === 1">人数越多学费分摊更优惠</span>
          <div class='group_photo'>
              <img v-if="courses[index] && courses[index].avatarUrl" :src="courses[index].avatarUrl">
              <img v-else-if="index<courses.length" :src="'images/home/head1.png'">
              <img v-else :src="'images/home/head2.png'">
          </div>
          <div class='group_username'>{{(index < courses.length) ? courses[index].contactName : '团员'+(index+1)}}</div>
        </div>
      </div>


      <div class="groupPriceTable">
        <span v-for="(item,index) in groupPriceTip" :key="index" :class="{'current': index === courses.length-1 && index !== 0}" v-html="item"></span>
      </div>


      <!-- <div class='group_time' v-if="groupEndTime">有效期：{{groupEndTime}}</div> -->
      <div class='group_time' v-if="groupEndDate">截止时间: {{groupEndDate}}</div>
      <div class='group_time' v-else-if="groupInfo.status === 'GROUP_SUCCESS'">已成班</div>
      <div class="group_time" v-else>已结束</div>

      <div class='btn_box' ref="sBtn">
        <span class='btn' v-if="!isEnd && !isJoin" @click='addGroup'>立即报名参加</span>

        <span class="btn" v-else-if="isEnd && courses.length<2 || isEnd && !isJoin" @click="goOrder">重新发起新的拼班</span>
        <span class="btn" v-else-if="isEnd && isJoin && courses.length>1" @click="shareFn('gather')">推荐给朋友</span>
  
        <span class="btn" v-else @click="shareFn">邀请更多朋友来参加</span>

      </div>

      <!--<div class="btn_box" style="padding-top:0" v-if="courses.length === 1 && !isEnd && isJoin && (new Date().getTime() > new Date(new Date().setDate(new Date(this.courses[0].createTime).getDate() +1)).getTime())">-->
      <div class="btn_box" style="padding-top:0" v-if="courses.length === 1 && !isEnd && isJoin && (new Date().getTime() > new Date(new Date().setDate(new Date(groupInfo.startTime).getDate() +1)).getTime())">
        <a class="btn btn_line" href="nearby.html">还没人加入？看看我附近的接班</a>
      </div>

      <div class="pin_tip" v-if="!isEnd && !isJoin">
        <span>地点/课程不合适？</span> <span class='btn_text' @click='goOrder'>免费发起新的拼班</span>
      </div>

      <!--&lt;!&ndash;吸底分享&ndash;&gt;-->
      <!--<div class="gp-fixBottom" v-show="gpFixBtn" v-if="!isEnd">-->
        <!--<span class='btn' v-if="!isJoin" @click='addGroup'>立即参与</span>-->
        <!--<span class="btn" v-else @click="shareFn">立即邀请</span>-->
      <!--</div>-->

    </div>
    
  </div>
  

  <div class='main_box banner'><img src='images/home/banner.jpg'></div>

  <div class='main_box home_main1'><img src='images/home/home_main1.png'></div>

  
  


  <div class='main_box home_main3'><img src='images/home/home_main3.png'></div>

  <!--<div class='main_box home_main4'><img src='images/home/home_main4.png'></div>-->


  
  <div class='main_box home_main5'>
    <h3 class='index_tit'>硅谷少儿英语课程</h3>
    <ul class="course_list">
      <li>
        <h4>Wonders 启蒙班 (2-4人)</h4>
        <p>适合英语零基础的孩子</p>
        <a class="btn btn_line" href="course-1.html">了解详情</a>
      </li>
      <li>
        <h4>Wonders 基础班 (2-4人)</h4>
        <p>适合已有一年左右英语学习基础的孩子</p>
        <a class="btn btn_line" href="course-2.html">了解详情</a>
      </li>
      <li>
        <h4>Wonders 进阶班 (2-4人)</h4>
        <p>适合已有两年及以上英语学习基础的孩子</p>
        <a class="btn btn_line" href="course-3.html">了解详情</a>
      </li>
    </ul>
  </div>


  <div class='main_box home_main5'>
    <h3 class='index_tit'>高效的浸入式学习体验</h3>
    <div class="swiper-container" id="js_swiper1">
      <div class="swiper-wrapper">
        <div class="swiper-slide swiper_list" v-for="item in banner.list">
          <div class='swiper_box'>
            <img :src="item.src" class="slide-image" />
            <p>{{item.title}}</p>
          </div>
        </div>
      </div>
    </div>
  </div>


  <div class='main_box home_main6'>
    <h3 class='index_tit'>外教/中教严选把关，是老师<br>更是你孩子的朋友</h3>
    <div class="swiper-container swiper_teacher" id="js_swiper2">
      <div class="swiper-wrapper">
        <div class="swiper-slide swiper2_list" v-for="item in teacher.list">
          <div class='swiper_photo_box'>
            <img :src="item.src" class="slide-image" /> 
          </div>
          <div class='teacher_name'>{{item.name}}</div>
          <p class='teacher_info'>{{item.info}}</p>
        </div>
      </div>
      <div class="swiper-pagination"></div>
    </div>
  </div>





  <div class='main_box home_main7'><img src='images/home/home_main7.png'></div>

  <div class='chengnuo'><img src='images/home/chengnuo.jpg'></div>
  <div class='service'><img src='images/home/service.png'></div>

  <!-- <div class='btn_box'>
    <span class='btn btn_line'>分享给朋友</span>
  </div> -->

  <div class="win_bg" :class="{show_dialog:showDialog}"></div>
  <div class="form_dialog" :class="{show_dialog:showDialog}">
    <h3>试听课报名成功</h3>
    <p>亲爱的家长，感谢您的参与。<br>我们将尽快与您联系。</p>
    <p>长按识别下方二维码，添加小谷老师，了解后续试听课细节安排。</p>
    <div class="ewm_box">
      <img src="images/home/ewm.png" alt="">
      <p>硅谷少儿英语<br>小谷老师</p>
    </div>
    <div class="close" @click="showDialog=false"></div>
  </div>

  <div class="share_tip" v-show="showShareTip">
    <img src="images/share_tip.png" alt="">
    <div class="share_content_bg" @click="showShareTip=false"></div>
    <div class="share_content" v-show="!isEnd">
      <h4>复制以下课程信息，<br>粘贴到朋友圈分享给朋友～</h4>
      <div class="share_text" id="copyText">
        <p>给娃免费拼外教上门英语试听课，满2人即可开课～</p>
        <p v-if="courses[0]">
          • {{courseData.name}}<br>
          <!-- • {{courseData.info.split('：')[1]}}<br> -->
          • {{courseData.info}}<br>
          • 外教免费上门授课（含孩子英语能力测评）<br>
          • 1对2～{{groupInfo.groupMaxNumber}}精品小班授课<br>
          • {{courses[0].contactLocation}}附近（最终授课地点可协商决定）<br>
        </p>
        <p>报名或了解具体课程细节，请点击进入由我发起的拼班。名额有限哟</p>
      </div>
      <div class="shareFooter">
        <span class="btn btn_line" onclick="oneKeyCopy(document.getElementById('copyText'));">一键复制</span>
      </div>
    </div>
  </div>

  <!--吸底分享-->
  <div v-show="gpFixBtn" v-if="!isEnd">
    <span class='btn_bm' v-if="!isJoin" @click='addGroup'>立即<br>参加</span>
    <span class="btn_bm" v-else @click="shareFn">立即<br>邀请</span>
  </div>

  <a class="btn_bm btn_qimoChat" onclick="qimoChatClick()">在线<br>咨询</a>
</div>

<!-- 提示框 -->
<div class="modal_bg"></div>
<div class="modal_box">
  <p>请填写联系人</p>
  <div class="modal_footer">
    <div class="modal_btn green js_alert_ok">确定</div>
    <div class="modal_btn js_alert_cancel">取消</div>
  </div>
</div>

<footer class="appFoot">
  <a href="index.html"><span class="appFoot-itemText">免费试听</span></a>
  <a href="course-1.html"><span class="appFoot-itemText">了解课程</span></a>
  <a href="myOrder.html"><span class="appFoot-itemText">我的...</span></a>
  <a href="about.html"><span class="appFoot-itemText">关于我们</span></a>
</footer>

<div role="alert" class="el-alert el-alert--success js_elAlert">
  <div class="el-alert__content"><span class="el-alert__title">复制成功，可以去分享啦</span></div>
</div>

<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script src="js/zepto.min.js"></script>
<script src="js/vue.min.js"></script>
<script src="js/swiper-3.4.2.min.js"></script>
<script src="js/common.js"></script>
<script src="js/index.js"></script>

<script type='text/javascript' src='https://webchat.7moor.com/javascripts/7moorInit.js?accessId=5fc40f90-4c50-11e9-8cff-09c8f8fdbcba&autoShow=false&language=ZHCN' async='async'></script>
<script>
  // 一键copy
  function selectText(x) {
    if (document.selection) {
      var range = document.body.createTextRange();
      range.moveToElementText(x);
      range.select();
    } else if (window.getSelection) {
      var selection = window.getSelection();
      var range = document.createRange();
      selection.removeAllRanges();
      range.selectNodeContents(x);
      selection.addRange(range);
    }
  }
  let $elAlert = $('.js_elAlert');
  function oneKeyCopy(x){
    selectText(x);
    document.execCommand("copy");
    $elAlert.addClass('show');
    setTimeout(()=>{
      $elAlert.addClass('hide');
      setTimeout(()=>{
        $elAlert.removeClass('show').removeClass('hide');
      },500);
    },1000);
  }
</script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-133564697-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-133564697-1');
</script>
</body>
</html>
